/* SPDX-License-Identifier: GPL-2.0 */
/*
 * drivers/iio/adc/lombo/csp/common.h - csp common operations header
 *
 * Copyright (C) 2016-2018, LomboTech Co.Ltd.
 * Author: lomboswer <lomboswer@lombotech.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#ifndef __GPADC_COMMON_H___
#define __GPADC_COMMON_H___

#include <mach/csp.h>
#include <mach/common.h>
#include <mach/debug.h>
#ifdef CONFIG_LOMBO_MISC
#include <mach/efuse.h>
#endif

#define BUF_LEN		8

/* lombo_efuse_read -- read the value in efuse
 * @module_id: module id (defined in the efuse document)
 *
 * return: return the specific values saved in the efuse
 */
u64 csp_get_efuse_value(u32 module_id);

#endif
